<template>
  <div class="home">
    <x-header :left-options="{showBack: true}" :title="title"></x-header>
    <x-button @click.native="goBack()">返回</x-button>
  </div>
</template>

<script>
import { XHeader, Group, Cell, CellBox, XButton, Box } from "vux";
export default {
  data() {
    return {
      title: "另一页"
    };
  },
  components: {
    XHeader,
    Group,
    Cell,
    CellBox,
    XButton,
    Box
  },
  methods: {
      goBack(){
          this.$router.go(-2);
      }
  }
};
</script>

<style scoped lang="less">
.home {
  height: 100%;
}
</style>
